package com.gome.bg.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.gome.bg.entity.User;

@SuppressWarnings("rawtypes")
public class UserRowMapper implements RowMapper{

	public Object mapRow(ResultSet set, int index) throws SQLException {
		 User user = new User(set.getString("username"), set.getString("password"));
	    return user;
	}

}
